package com.ruoyi.finance.mapper;

import com.ruoyi.experiment.domain.Experiment;
import com.ruoyi.finance.domain.FPayment;
import com.ruoyi.finance.model.FExperiment;
import com.ruoyi.finance.model.Pfinance;
import com.ruoyi.finance.model.Query;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FinanceMapper {

    List<Pfinance> selectItem(Pfinance pro);
    List<FPayment> selectPaymentByPid(Long id);
    int getPay(@Param("id") Long id,@Param("price") Long price,@Param("remark")String remark);
    int backPay(Long id);
    int changeStatus(@Param("id") Long id,@Param("status") Integer status);
    List<Experiment> getExpByProjectId4(Query query);
    List<Experiment> getExpByProjectId5(Query query);

    List<FExperiment> getAllExpByPid(FExperiment fe);
    void updateProjectTypeToF(@Param("id")Long id);
    int getProjectStyle(Long id);
    int countPaymentByPid(Long id);
    int countExpByProjectId4(Long id);
    void finishPrice(@Param("id") Long id,@Param("finish")Integer finish);
}
